package com.woniuxy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.entity.Shop;
import com.woniuxy.mapper.ShopMapper;
import com.woniuxy.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements ShopService {
    @Autowired
    private ShopMapper shopMapper;
    @Override
    public int add(Shop shop) {
        return shopMapper.insert(shop);
    }

    @Override
    public void update(Shop shop) {

    }

    @Override
    public Shop search(String keyword) {
        return shopMapper.search(keyword);
    }

    @Override
    public List<Shop> getByRegionId(int rid) {
        return shopMapper.getByRegionId(rid);
    }


}
